package com.qf.smsplatform.search.service;

import com.qf.smsplatform.common.model.StandardReport;
import com.qf.smsplatform.common.model.StandardSubmit;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author: LeeRui
 * 2021/2/2 下午 8:32
 **/
public interface SearchService {

    //保存日志到ES
    void saveLog(StandardSubmit standardSubmit) throws IOException;

    //更新ES中指定doc_id的文档信息
    void updateReport(StandardReport standardReport) throws IOException;

    //查询短信数量
    Long findLogCount(Map map) throws IOException;

    //查询短信信息并显示
    List<Map> findLogInfo(Map map) throws IOException;

    //按短信发送状态统计短信数据配合前端以饼状图显示
    Map<String, Long> statistics(Map map) throws IOException;
}
